import request from '@/utils/request'

// 查询 校本教研活动列表
export function listYSchoolResearchActivity(query) {
  return request({
    url: '/research/ySchoolResearchActivity/list',
    method: 'get',
    params: query
  })
}

// 查询 校本教研活动详细
export function getYSchoolResearchActivity(id) {
  return request({
    url: '/research/ySchoolResearchActivity/' + id,
    method: 'get'
  })
}

// 新增 校本教研活动
export function addYSchoolResearchActivity(data) {
  return request({
    url: '/research/ySchoolResearchActivity',
    method: 'post',
    data: data
  })
}

// 修改 校本教研活动
export function updateYSchoolResearchActivity(data) {
  return request({
    url: '/research/ySchoolResearchActivity',
    method: 'put',
    data: data
  })
}

// 删除 校本教研活动
export function delYSchoolResearchActivity(id) {
  return request({
    url: '/research/ySchoolResearchActivity/' + id,
    method: 'delete'
  })
}
// 审核 校本教研活动
export function auditYSchoolResearchActivity(data) {
  return request({
    url: '/research/ySchoolResearchActivity/audit',
    method: 'put',
    data: data
  })
}
